import { RouteRecordRaw, createRouter, createWebHashHistory } from "vue-router";
import InfoIndex from '@/views/Info/Index.vue'
import EditInfoItem from '@/views/Info/EditInfoItem.vue'
import Attention from '@/views/AttentFans/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'info',
    component: () => InfoIndex
  },
  {
    path: '/edit',
    name: 'edit',
    component: () => EditInfoItem
  },
  {
    path: '/attention',
    name: 'attention',
    component: () => Attention
  },

]



const router = createRouter({
  history: createWebHashHistory(), //hash模式
  routes
})


export default router